<extend name="Index/index" />

<block name="Main content">

	<div class="row">
		<div class="col-md-12">
			<p>
				给 id:<b style="color:#f56954"><{$user.username}></b>   &nbsp姓名:<b style="color:#f56954"><{$user.name}></b> 分配角色
			</p>
			
			<form action="<{:U('Ad/role_save')}>" method='post'>
			<p style="width:600px">
				<volist name="list" id="vo">
					<!-- 如果列表里有就要自动勾选起来 -->
					<input type="checkbox" name="role[]"  value="<{$vo.id}>" <if condition="in_array($vo['id'],$role) eq true">checked</if>><{$vo.name}>
					&nbsp;
					&nbsp;
					&nbsp;
				</volist>
			</p>
			<input type="hidden" name="uid" value="<{$user.id}>">
			<input type="submit" value="保存" class="btn btn-primary">

			</form>
	
		</div>
	</div>

	
</block>